package com.gym.service;

import com.github.pagehelper.PageInfo;
import com.gym.pojo.Goods;
import com.gym.pojo.Train;

import java.util.List;

public interface GoodsService {
    public boolean insertjh(Goods goods);
    public boolean selectysp(String goodsname);
    public boolean selectzkc(int goodsId,int totalstock);
    public boolean selectsl(int goodsId,int goodsamount);
    public List<Goods> selectzj();
    public PageInfo<Goods> selectcp(String goodsname,int index,int size);
    public boolean updatejhj(int totalstock,int goodsId);
    public boolean updatezj(int goodsId,int goodsamount);
    public boolean deletesc(int goodsId);
    public boolean updatejj(int totalstock,int goodsId,int goodsamount);
}
